﻿using System;
using System.Collections.Generic;

namespace Rj_GsInsurance.Server.DataBaseContext.Entities
{
    public partial class RegTbPrepaidCardUseLog
    {
        public long Id { get; set; }
        public long InvoiceId { get; set; }
        /// <summary>
        /// 收费记录号
        /// </summary>
        public long ChargeNo { get; set; }
        public long PatId { get; set; }
        public string CardNo { get; set; } = null!;
        /// <summary>
        /// 储值卡唯一id
        /// </summary>
        public Guid PrepaidCardId { get; set; }
        /// <summary>
        /// 交易金额
        /// </summary>
        public decimal PayAmount { get; set; }
        /// <summary>
        /// 交易类型，1：充值，2：消费，3：退费
        /// </summary>
        public int TransType { get; set; }
        /// <summary>
        /// 交易描述
        /// </summary>
        public string? TransDesc { get; set; }
        /// <summary>
        /// 交易时间
        /// </summary>
        public DateTime TransTime { get; set; }
        /// <summary>
        /// 操作员工号
        /// </summary>
        public int OpCode { get; set; }
        /// <summary>
        /// 记录创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        public int CreateBy { get; set; }
        public DateTime? UpdateTime { get; set; }
        public int? UpdateBy { get; set; }
        public int HospitalId { get; set; }
        public long? RegNo { get; set; }
        /// <summary>
        /// 住院结算id
        /// </summary>
        public long? BillId { get; set; }
        /// <summary>
        /// 住院预交金id
        /// </summary>
        public long? PreChargeId { get; set; }
        public int? Type { get; set; }
    }
}
